<template>
  <div>
    子组件数据--{{msg()}}
  </div>
  <!-- <div>
    子组件数据--{{obj.msg}}
  </div> -->
</template>

<script>
export default {
  inject: ['msg']
  // inject: ['obj']
}
</script>

<style>
</style>